﻿using DMTroube_ZeKer.Model;
using Microsoft.Web.WebView2.WinForms;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DMTroube_ZeKer.Control
{
	public partial class TroubePanle_dm : UserControl
	{
		private List<TabData>? _tools;
		private TabPanel_dm? _tabPanel_Dm;
		/// <summary>
		/// 主要内容
		/// </summary>
		public System.Windows.Forms.Control MainControl_Left
		{
			set
			{
				MainLeftPanel.Controls.Add(value);
			}
		}
		//顶部栏
		public System.Windows.Forms.Control MainControl_Top
		{
			set
			{
				TopPanel.Controls.Add(value);
			}
		}
		/// <summary>
		/// 侧边栏
		/// </summary>
		public List<TabData>? Tools
		{
			get { return _tools; }
			set
			{
				if (_tabPanel_Dm != null)
				{
					_tools = value;
					_tabPanel_Dm.Tools = value;
				}
			}
		}
		public TroubePanle_dm()
		{
			InitializeComponent();
			_tabPanel_Dm = new TabPanel_dm();
			_tabPanel_Dm.Dock = DockStyle.Fill;
			MainRightPanel.Controls.Add(_tabPanel_Dm);
		}
	}
}
